/*
ID:luongho3
LANG:C++
TASK:calfflac
*/
#include <iostream>
#include <fstream>
#include <vector>
using namespace std;
ifstream fin("calfflac.in");
ofstream fout("calfflac.out");
string originalString;
string refinedString;
vector<int> label;
string refine(string str,vector<int> &label) {
       int i;
       string result;
       for (i=0;i<str.size();++i) {
           if (isupper(str[i])||islower(str[i])) {
              str[i]=toupper(str[i]);
              result.push_back(str[i]);
              label.push_back(i);
           }
       }
       return result;
}
main() {
       string temp;
       while (getline(fin,temp)) {
             originalString.append(temp+"\n");
       }
       refinedString=refine(originalString,label);
       fout<<refinedString<<"\n";
       return 0;
}
